package com.sxhuayuan.parking.service;

import com.sxhuayuan.parking.entity.Member;

public interface MemberService extends BaseService<Member, Long> {

	/**
	 * 根据openId 查询用户
	 * 
	 * @param openId
	 * @return
	 */
	Member findByOpenId(String openId);

	// 微信专用
	Member findByUnionid(String unionId);

	Member getCurrent();

	String getCurrentName();

	/**
	 * 是否已登录
	 * 
	 * @return
	 */
	boolean isAuthenticated();
}
